﻿using AutoMapper;
using BCDto.HelpDocument.HelpDocumentation;
using BCDto.HelpDocument.HelpDocumentCategory;
using BCEntity.HelpDocument.HelpDocumentation;
using BCEntity.HelpDocument.HelpDocumentCategory;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.MapperProfiles.HelpDocument
{
    public class HelpDocumentProfile : Profile
    {
        public HelpDocumentProfile()
        {

            //帮助文档类型
            CreateMap<HelpDocumentCategoryDto, HelpDocumentCategoryEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<HelpDocumentCategoryRequestDto, HelpDocumentCategoryPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<HelpDocumentCategoryRequestDto, HelpDocumentCategoryEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<HelpDocumentCategoryPutDto, HelpDocumentCategoryEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<HelpDocumentCategoryEntity, HelpDocumentCategoryDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            //帮助
            CreateMap<HelpDocumentationDto, HelpDocumentationEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<HelpDocumentationRequestDto, HelpDocumentationPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<HelpDocumentationRequestDto, HelpDocumentationEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<HelpDocumentationPutDto, HelpDocumentationEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<HelpDocumentationEntity, HelpDocumentationDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}
